﻿CREATE TABLE [dbo].[ResetPasswordTokens]
(
    [Id]             INT            IDENTITY (1, 1) NOT NULL,
    [Date]           DATETIME                       NOT NULL,
    [UserId]         INT                            NOT NULL,
    [Token]          NVARCHAR (256)                 NOT NULL,
    [TokenLifetime]  INT                            NOT NULL
    CONSTRAINT [PK_ResetPasswordTokens] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_ResetPasswordTokens_Users] FOREIGN KEY ([UserId]) REFERENCES [dbo].[Users] ([Id]) ON DELETE CASCADE ON UPDATE CASCADE
)
